package com.whp.yky.yky.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.whp.yky.yky.entity.Borrow;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.whp.yky.yky.entity.poentity.Document;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author whp
 * @since 2021-04-21
 */
@Mapper
public interface BorrowMapper extends BaseMapper<Borrow> {

    public List<Borrow> getShzBorrow(IPage<Borrow> page , @Param("entity") Borrow borrow);

    List<Borrow> getYshBorrow(IPage<Borrow> page , @Param("entity") Borrow borrow);

    List<Borrow> getPersonnalBorrowList(Integer userId);
}
